package com.pinda.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pinda.authorization.entity.Role;
import com.pinda.mapper.RoleMapper;
import com.pinda.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author 黄杰
 * @since 2023-06-13
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Resource
    private RoleMapper roleMapper;


    @Override
    public List<Role> findUserIdRoleService(String userId) {
        return this.roleMapper.findUserIdRole(userId);
    }
}
